<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use yii\widgets\LinkPager;
	?>
	<table border=2>
		<tr>
			<td>名称</td>
			<td>年龄</td>
			<td>操作</td>
		</tr>
		<?php foreach ($models as $key => $value) {?>
		<tr>
			<td><?=$value['name']?></td>
			<td><?=$value['age']?></td>
			<td><a href="<?=Url::toRoute(['position/del','id'=>$value['id']])?>">删除</a></td>
		</tr>
       <?php }?>
 	</table>
   <?php

	// 显示分页

	    echo LinkPager::widget([
    'pagination' => $pagination,
	]);
?>


